<?php
/**
 * @package Waterwheel
 */
/* 
 *  Copyright 2010 Andrew Rickmann
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */


/**
 * Description of operationalplugin
 *
 * @author Andrew Rickmann
 */
class operational extends plugin {
    
    
    function action_test_action_without_value(){
	//we will throw an exception here so it can be caught in the test case
	throw new waterwheelexception('test_action');
    }

    function action_test_action_with_value( $value ){
	//we will throw an exception here so it can be caught in the test case
	//the exception message will be the passed value
	throw new waterwheelexception($value);
    }
    
    function filter_test_filter( $value1, $value2 ){
	//very simple filter that just adds two values together
	return $value1 + $value2;
    }

    function filter_test_filter_with_no_return_value( $value1 ){
	//do nothing.
    }

    function filter_settings_set( $name , $value ){
	$this->settings->set( $name , $value );
	return true; //something must be retured from a filter
    }

}
?>